package com.css.fxfzypg.modules.group.service.impl;

import com.css.fxfzypg.modules.group.entity.GroupUserEntity;
import com.css.fxfzypg.modules.group.repository.GroupUserRepository;
import com.css.fxfzypg.modules.group.service.GroupUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author
 * @program
 * @description
 * @create 2022/8/1 10:50
 **/
@Service
public class GroupUserServiceimpl implements GroupUserService {

    @Autowired
    GroupUserRepository groupUserRepository;

    @Override
    public void deleteGroupIdAndUserId(String ids) {
        groupUserRepository.deleteGroupIdAndUserId(ids);
    }

    @Override
    public void saveGroupUser(List<GroupUserEntity> list) {
        groupUserRepository.saveGroupUser(list);
    }

    @Override
    public List<GroupUserEntity> selectGroupMemberAndGroupExpert(String groupId) {
        List<GroupUserEntity> list=groupUserRepository.selectGroupMemberAndGroupExpert(groupId);
        return list;
    }

    @Override
    public List<GroupUserEntity> getGroupId(String userId) {
        List<GroupUserEntity> list=groupUserRepository.getGroupId(userId);
        return list;
    }
}
